import request from '@/utils/request'

// 用户预约
export function appointment(data) {
    return request({
        url: '/qd/order/appointment',
        method: 'post',
        data: data
    })
}

// 根据用户 id 查询订单集合
export function listOrderByUserId(userId) {
    return request({
        url: '/qd/order/listOrderByUserId/' + userId,
        method: 'get'
    })
}

// 取消订单
export function cancelOrder(id) {
    return request({
        url: '/qd/order/cancelOrder/' + id,
        method: 'post'
    })
}

// 签到
export function signOrder(id) {
    return request({
        url: '/qd/order/signOrder/' + id,
        method: 'post'
    })
}
